import numpy as np

# 创建数组
arr = np.array([1, 2, 3, 4])
matrix = np.array([[1, 2], [3, 4]])

# 数学运算
print("Sum:", np.sum(arr))
print("Mean:", np.mean(matrix))